class BoardsController < ApplicationController
	def new
		@b = Board.new
	end
	def create
		Board.create(params[:board])
puts params.inspect
		redirect_to players_path
	end
	def index
		@boards = Board.find :all
	end
	def edit
		@b = Board.find params[:id]
	end
	def update
		@board = Board.find params[:id]
		if @board.update_attributes(params[:board])
			redirect_to players_path
		end
	end
end
